const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
    transpileDependencies: true,

    // 开发服务器配置
    devServer: {
        port: 8080,
        proxy: {
            '/api': {
                target: 'http://localhost:8000', // 后端API地址
                changeOrigin: true,
                pathRewrite: { '^/api': '/api' } // 不重写路径
            }
        }
    },

    // 关闭eslint
    lintOnSave: false
}) 